﻿using System;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

using Ninject.Core;
using Ninject.Core.Parameters;

using BlueSky.Web.Extentions;

namespace BlueSky.Web
{
    /// <summary>
    /// Ninjected controller factory.
    /// </summary>
    //internal class NinjectControllerFactory : IControllerFactory
    //{
    //    public IController CreateController(RequestContext requestContext, string controllerName)
    //    {
    //        return NinjectKernelContainer.Kernel.Get<IController>
    //            (
    //                With.Parameters.ByController(controllerName)
    //            );
    //    }

    //    public void ReleaseController(IController controller)
    //    {
    //        NinjectKernelContainer.Kernel.Release(controller);
    //    }
    //}
}
